package scau.gsmg.misp.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import scau.gsmg.misp.dao.IMessageDAO;
import scau.gsmg.misp.service.IMessageService;

@Service
public class MessageService implements IMessageService{

	private IMessageDAO messageDAO;
	
	@Resource
	public void setMessageDAO(IMessageDAO messageDAO) {
		this.messageDAO = messageDAO;
	}


	@Override
	public String searcRoles(int id) {
		// TODO Auto-generated method stub
		return messageDAO.searcRoles(id);
	}

	@Override
	public boolean searchPasswd(int id,String password) {
		// TODO Auto-generated method stub
		return messageDAO.searchPasswd(id,password);
	}

	@Override
	public boolean updatePasswd(int id,String password) {
		// TODO Auto-generated method stub
		return messageDAO.updatePasswd(id, password);
	}

}
